package operation_log

import (
	"github.com/xinliangnote/go-gin-api/internal/pkg/core"
	"github.com/xinliangnote/go-gin-api/internal/repository/mongodb"
	"github.com/xinliangnote/go-gin-api/internal/repository/mongodb/operation_log"
)

var _ Service = (*service)(nil)

type Service interface {
	i()
	List(ctx core.Context, pageIndex uint, pageSize uint) (productList []operation_log.OperationLog, err error)
	Count(ctx core.Context) (count int64, err error)
}

type service struct {
	db mongodb.Repo
}

func New(db mongodb.Repo) Service {
	return &service{
		db: db,
	}
}

func (s *service) i() {}
